<?php 
	session_start();
	require_once dirname( __FILE__ ) . '/form-process.php';  
	$pageURL = 'http';
	if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
		$pageURL .= "://";
	if ($_SERVER["SERVER_PORT"] != "80") {
		$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
	} else {
		$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
	}	

	$action= $pageURL;
?>

<?php get_header(); ?>

<div id="content">
	<div class="left">
<?php
if ($error != "") {
	if($error=="null")
	{
		echo "<div class=\"success\">"."Please check your mailbox to get password!"."</div>";
	}
	else
		echo "<div class=\"err\">".$error."</div>";
}
?>
<form id="get-password" name="get-password" method="post" action="<?=$action;?>" enctype="multipart/form-data">
<input type="hidden" name="action" value="getpassword" />
<?php wp_nonce_field('get-password'); ?>				
        <div  align="center">
            <h3>Get Your Password:</h3>
                <p>
                <h3>Your Email:</h3>
                    <div class="inputStyle">
                    <input type="text" name="youremail" id="youremail" value="<?=$_SESSION['youremail'] ?>" />
                    </div>
                    <div class="cl"></div>
                    <input id="submit_go" type="submit" style="margin-left: 190px; margin-top: 15px;" value="Get Password" />
                    <div class="cl"></div>	
                </p>
            </div>
         </form>
	</div> 
  <?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
